package com.shaw.client.mvc.goal;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Controller;
import com.extjs.gxt.ui.client.mvc.View;

public class GoalView extends View {

	// private static MailManager mailManager;

	// public static MailManager getMailWindow(){
	// if(mailManager==null){
	// mailManager= new MailManager();
	// }
	// return mailManager;
	// }

	public GoalView(Controller controller) {
		super(controller);
	}

	@Override
	protected void handleEvent(AppEvent event) {
		//EventType type = event.getType();
		// if(event.getType()==AppEvents.MAIL){
		// Dispatcher.forwardEvent(AppEvents.ACTIVE_WIN, getMailWindow());
		// }else if(event.getType()==AppEvents.MAIL_nav){
		// Dispatcher.forwardEvent(AppEvents.ACTIVE_WIN, getMailWindow());
		// mailManager.activeMailNav();
		// }else if(event.getType()==AppEvents.MAIL_showMailItem){
		// Dispatcher.forwardEvent(AppEvents.ACTIVE_WIN, getMailWindow());
		// mailManager.showMailItem((ClientInBoxMail)event.getData());
		// }else
		// if(type==AppEvents.MAIL_new||type==AppEvents.MAIL_forward||type==AppEvents.MAIL_reply){
		// Dispatcher.forwardEvent(AppEvents.ACTIVE_WIN, getMailWindow());
		// mailManager.activeNewMail(event);
		// }

	}

	@Override
	protected void initialize() {
		super.initialize();
		// Dispatcher.forwardEvent(AppEvents.TASKBAR_newWin, getMailWindow());
	}

}
